<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('public.home');
});

Route::post('/upload_img', 'PublicController@UploadImg');
Route::get('/delete_img', 'PublicController@DeleteImg');

Route::get('/index', 'PublicController@index');
Route::post('/login', 'Auth\LoginController@Login');
Route::get('/home', 'PublicController@Home');
Route::get('/sign_out', 'LoginController@SignOut');//退出
//apply
Route::post('/apply_ist','ApplyController@ApplyList');
Route::post('/add_product','ApplyController@AddProduct');
Route::post('/save_product','ApplyController@SaveProduct');
Route::post('/edit_product','ApplyController@EditProduct');

//game
Route::post('/game_list','GameController@GameList');
Route::post('/game_edit','GameController@GameEdit');
Route::post('/game_save','GameController@GameSave');